from core.rest_client import RestClient

"""
接口地址
"""

# 优化：定义类，参数相同使用继承类方法

    def get_code(self, **kwargs):
        return self.post('/code/', **kwargs)

    def register_mobile(self,**kwargs):
        return self.post('/users/', **kwargs)

    def user_login(self, **kwargs):
        return self.post('/login/', **kwargs)

    def user_add_goods(self,**kwargs):
        return self.post('/shopcarts', **kwargs)

    def user_add_message(self, **kwargs):
        return self.post('/messages/', **kwargs)

    # goods_api banner
    def banner(self, **kwargs):
        return self.get('/banners/', **kwargs)





api_util = Api()
